/*
 * Copyright (c) 2020 solidwang. All rights reserved.
 */

package com.solidwang.mybatis.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class UserParam {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "年龄", required = true)
    @Min(value = 0, message = "年龄不能小于0")
    @Max(value = 200, message = "年龄必须在200岁以下")
    private Integer age;

}
